package com.dcw.lixb.designmode.memento;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lixiaobin
 * @date 2020-07-28 15:07:01
 * @desc 描述信息
 */
public class CareTaker {
    private List<Memento> mMementoList = new ArrayList<>();

    public void add(Memento state) {
        mMementoList.add(state);
    }

    public Memento get(int index) {
        return mMementoList.get(index);
    }
}
